home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Software Contest 3 / FM Towns Software Contest 3.iso / exp / video_t / no1 / c_sorse / cls.c < prev    next >
C/C++ Source or Header  |  1994-01-07  |  3KB  |  139 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    Dialog_cls ;
  9. extern int    Message_cls ;
  10. extern int    _001Message_cls ;
  11. extern int    DButton_cls1 ;
  12. extern int    cls_on() ;
  13. extern int    _001DButton_cls1 ;
  14. extern int    cls_off() ;
  15. extern int    Message_con ;
  16. extern int    _001Message_coff ;
  17.  
  18. #define ALIGN    4
  19. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  20.  
  21. /*    MMI_init 用データ    */
  22.  
  23. /*    ヘッダ    */
  24.  
  25. MMIINIT    initDataCLS = { "MmiInit",   7, 0 } ;
  26.  
  27. /* Dialog_cls */
  28.  
  29. static MMIPACKET d001 = {    &Dialog_cls,
  30.                             NULL,
  31.                             &MJ_DIALOGL40,
  32.                             OFFSET(DIALOGL40),
  33.                             0
  34.                         } ;
  35. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40,
  36.                               79,  64, 313, 197, 0, 7, 0,
  37.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  38.                             NULL,   0,   0
  39.                         } ;
  40.  
  41. /* Message_cls */
  42.  
  43. static MMIPACKET d002 = {    &Message_cls,
  44.                             &Dialog_cls,
  45.                             &MJ_MSGL40,
  46.                             OFFSET(MSGL40),
  47.                             0
  48.                         } ;
  49. static MSGL40    d002d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  50.                               85,  72, 305,  95, 0,15,12,
  51.                             MS_NONEL40,
  52.                             "画面消去",
  53.                                2,  16,  16,
  54.                             MS_NONEL40,
  55.                               10,   0
  56.                         } ;
  57.  
  58. /* _001Message_cls */
  59.  
  60. static MMIPACKET d003 = {    &_001Message_cls,
  61.                             &Dialog_cls,
  62.                             &MJ_MSGL40,
  63.                             OFFSET(MSGL40),
  64.                             0
  65.                         } ;
  66. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  67.                               87, 101, 302, 124, 0,15, 0,
  68.                             MS_NONEL40,
  69.                             "画面を消去するコマンドです",
  70.                                2,  16,  16,
  71.                             MS_NONEL40,
  72.                                0,   0
  73.                         } ;
  74.  
  75. /* DButton_cls1 */
  76.  
  77. static MMIPACKET d004 = {    &DButton_cls1,
  78.                             &Dialog_cls,
  79.                             &MJ_DBUTTONL40,
  80.                             OFFSET(DBUTTONL40),
  81.                             0
  82.                         } ;
  83. static DBUTTONL40    d004d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  84.                              103, 152, 182, 177, 0, 7, 0,
  85.                             MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
  86.                             cls_on,
  87.                             0x0000
  88.                         } ;
  89.  
  90. /* _001DButton_cls1 */
  91.  
  92. static MMIPACKET d005 = {    &_001DButton_cls1,
  93.                             &Dialog_cls,
  94.                             &MJ_DBUTTONL40,
  95.                             OFFSET(DBUTTONL40),
  96.                             0
  97.                         } ;
  98. static DBUTTONL40    d005d = {    MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
  99.                              211, 152, 290, 177, 0, 7, 0,
  100.                             MS_UFRAMEL40 | MS_FRAMEL40,
  101.                             cls_off,
  102.                             0x0000
  103.                         } ;
  104.  
  105. /* Message_con */
  106.  
  107. static MMIPACKET d006 = {    &Message_con,
  108.                             &Dialog_cls,
  109.                             &MJ_MSGL40,
  110.                             OFFSET(MSGL40),
  111.                             0
  112.                         } ;
  113. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  114.                              104, 153, 181, 176, 0,15,15,
  115.                             MS_NONEL40,
  116.                             "確定",
  117.                                2,  16,  16,
  118.                             MS_NONEL40,
  119.                               16,   0
  120.                         } ;
  121.  
  122. /* _001Message_coff */
  123.  
  124. static MMIPACKET d007 = {    &_001Message_coff,
  125.                             &Dialog_cls,
  126.                             &MJ_MSGL40,
  127.                             OFFSET(MSGL40),
  128.                             0
  129.                         } ;
  130. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  131.                              212, 153, 289, 176, 0,15,15,
  132.                             MS_NONEL40,
  133.                             "取消",
  134.                                2,  16,  16,
  135.                             MS_NONEL40,
  136.                               16,   0
  137.                         } ;
  138.  
  139.